package com.situ.study.day8;

public class Teacher extends Person{
    private double salary;

    public void teach() {
        System.out.println("老师" + name + "的薪资是" + salary);
    }
}
